
<!DOCTYPE HTML>
<html lang="en" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>2.1.3 JSON事件 · 命令进阶</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.2">
        
        
        
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
        <link rel="stylesheet" href="../../styles/website.css">
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="array.html" />
    
    
    <link rel="prev" href="formatting.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../">
            
                <a href="../../">
            
                    
                    引言
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../../concepts/concepts.html">
            
                <a href="../../concepts/concepts.html">
            
                    
                    1 基础概念
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../../concepts/space.html">
            
                <a href="../../concepts/space.html">
            
                    
                    1.1 坐标、朝向、区块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../../concepts/time.html">
            
                <a href="../../concepts/time.html">
            
                    
                    1.2 时间、顺序
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../../concepts/execution.html">
            
                <a href="../../concepts/execution.html">
            
                    
                    1.3 命令执行
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="../../concepts/selector/selector.html">
            
                <a href="../../concepts/selector/selector.html">
            
                    
                    1.4 目标选择器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="../../concepts/stats.html">
            
                <a href="../../concepts/stats.html">
            
                    
                    1.5 命令执行统计
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../common-format.html">
            
                <a href="../common-format.html">
            
                    
                    2 常用命令格式
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="json.html">
            
                <a href="json.html">
            
                    
                    2.1 JSON文本
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1.1" data-path="type.html">
            
                <a href="type.html">
            
                    
                    2.1.1 JSON文本类型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.2" data-path="formatting.html">
            
                <a href="formatting.html">
            
                    
                    2.1.2 JSON样式
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.3.1.3" data-path="event.html">
            
                <a href="event.html">
            
                    
                    2.1.3 JSON事件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.4" data-path="array.html">
            
                <a href="array.html">
            
                    
                    2.1.4 JSON分项
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.5" data-path="sign-book.html">
            
                <a href="sign-book.html">
            
                    
                    2.1.5 告示牌及成书
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.6" data-path="other.html">
            
                <a href="other.html">
            
                    
                    2.1.6 杂项
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.7" data-path="keys.html">
            
                <a href="keys.html">
            
                    
                    2.1.A 附录: keybind列表
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../nbt/nbt.html">
            
                <a href="../nbt/nbt.html">
            
                    
                    2.2 NBT及结构
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.2.1" data-path="../nbt/simple.html">
            
                <a href="../nbt/simple.html">
            
                    
                    2.2.1 基本类型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2.2" data-path="../nbt/example.html">
            
                <a href="../nbt/example.html">
            
                    
                    2.2.2 NBT实战
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../../command/command.html">
            
                <a href="../../command/command.html">
            
                    
                    3 如何执行命令
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../../command/chat.html">
            
                <a href="../../command/chat.html">
            
                    
                    3.1 聊天栏
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../../command/cb.html">
            
                <a href="../../command/cb.html">
            
                    
                    3.2 命令方块简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../../command/function.html">
            
                <a href="../../command/function.html">
            
                    
                    3.3 命令函数
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../../scoreboard/scoreboard.html">
            
                <a href="../../scoreboard/scoreboard.html">
            
                    
                    4 记分板
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../../scoreboard/objective.html">
            
                <a href="../../scoreboard/objective.html">
            
                    
                    4.1 记分板变量
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../../scoreboard/team.html">
            
                <a href="../../scoreboard/team.html">
            
                    
                    4.2 记分板队伍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../../scoreboard/tag.html">
            
                <a href="../../scoreboard/tag.html">
            
                    
                    4.3 记分板标签
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="../../scoreboard/command.html">
            
                <a href="../../scoreboard/command.html">
            
                    
                    4.4 记分板命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5" data-path="../../scoreboard/example.html">
            
                <a href="../../scoreboard/example.html">
            
                    
                    4.5 记分板实战
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.5.1" data-path="../../scoreboard/examples/example1.html">
            
                <a href="../../scoreboard/examples/example1.html">
            
                    
                    4.5.1 循环电路|记分板的基础操作
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5.2" data-path="../../scoreboard/examples/example2.html">
            
                <a href="../../scoreboard/examples/example2.html">
            
                    
                    4.5.2 自定义命令|stats与记分板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5.3" data-path="../../scoreboard/examples/example3.html">
            
                <a href="../../scoreboard/examples/example3.html">
            
                    
                    4.5.3 击杀率|operation与准则
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5.4" data-path="../../scoreboard/examples/example4.html">
            
                <a href="../../scoreboard/examples/example4.html">
            
                    
                    4.5.4 漂亮的排名|显示与队伍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5.5" data-path="../../scoreboard/examples/example5.html">
            
                <a href="../../scoreboard/examples/example5.html">
            
                    
                    4.5.5 简单登入系统|function与综合运用
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../../logic/logic.html">
            
                <a href="../../logic/logic.html">
            
                    
                    5 基础逻辑
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../../logic/enum.html">
            
                <a href="../../logic/enum.html">
            
                    
                    5.1 穷举
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../../logic/score.html">
            
                <a href="../../logic/score.html">
            
                    
                    5.2 分数处理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../../logic/bool.html">
            
                <a href="../../logic/bool.html">
            
                    
                    5.3 布尔逻辑
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="../../logic/loop.html">
            
                <a href="../../logic/loop.html">
            
                    
                    5.4 循环
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5" data-path="../../logic/event.html">
            
                <a href="../../logic/event.html">
            
                    
                    5.5 事件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.6" data-path="../../logic/marker.html">
            
                <a href="../../logic/marker.html">
            
                    
                    5.6 实体Marker
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.7" data-path="../../logic/execute.html">
            
                <a href="../../logic/execute.html">
            
                    
                     5.7 execute进阶
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../../practise/practise.html">
            
                <a href="../../practise/practise.html">
            
                    
                    6 实战
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../../practise/objects.html">
            
                <a href="../../practise/objects.html">
            
                    
                    6.1 游戏内物件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../../practise/test-debug.html">
            
                <a href="../../practise/test-debug.html">
            
                    
                    6.2 命令系统测试及调试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="../../practise/examples/examples.html">
            
                <a href="../../practise/examples/examples.html">
            
                    
                    6.3 更多命令系统例子
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.3.1" data-path="../../practise/examples/furnace.html">
            
                <a href="../../practise/examples/furnace.html">
            
                    
                    6.3.1 熔炉过热系统
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3.2" data-path="../../practise/examples/badapple.html">
            
                <a href="../../practise/examples/badapple.html">
            
                    
                    6.3.2 毒苹果
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3.3" data-path="../../practise/examples/rain.html">
            
                <a href="../../practise/examples/rain.html">
            
                    
                    6.3.3 下雨检测
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3.4" data-path="../../practise/examples/chest_replace.html">
            
                <a href="../../practise/examples/chest_replace.html">
            
                    
                    6.3.4 替换方块实体
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3.5" data-path="../../practise/examples/skill.html">
            
                <a href="../../practise/examples/skill.html">
            
                    
                    6.3.5 技能系统
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3.6" data-path="../../practise/examples/crown.html">
            
                <a href="../../practise/examples/crown.html">
            
                    
                    6.3.6 皇冠系统
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3.7" data-path="../../practise/examples/blackhole.html">
            
                <a href="../../practise/examples/blackhole.html">
            
                    
                    6.3.7 黑洞
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3.8" data-path="../../practise/examples/login.html">
            
                <a href="../../practise/examples/login.html">
            
                    
                    6.3.8 登录系统
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../../data-files/data-files.html">
            
                <a href="../../data-files/data-files.html">
            
                    
                    7 游戏文件的使用
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="../../data-files/resourcepack/resourcepack.html">
            
                <a href="../../data-files/resourcepack/resourcepack.html">
            
                    
                    7.1 资源包
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1.1" data-path="../../data-files/resourcepack/textures.html">
            
                <a href="../../data-files/resourcepack/textures.html">
            
                    
                    7.1.1 材质
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.1.2" data-path="../../data-files/resourcepack/models.html">
            
                <a href="../../data-files/resourcepack/models.html">
            
                    
                    7.1.2 模型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.1.3" data-path="../../data-files/resourcepack/sound.html">
            
                <a href="../../data-files/resourcepack/sound.html">
            
                    
                    7.1.3 声音
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="../../data-files/loot-table.html">
            
                <a href="../../data-files/loot-table.html">
            
                    
                    7.2 Loot table
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3" data-path="../../data-files/advancements/advancements.html">
            
                <a href="../../data-files/advancements/advancements.html">
            
                    
                    7.3 Advancement
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.3.1" data-path="../../data-files/advancements/examples.html">
            
                <a href="../../data-files/advancements/examples.html">
            
                    
                    Advancement例子
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" >
            
                <span>
            
                    
                    8 杂项
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" >
            
                <a target="_blank" href="https://commandtutorials.neocities.org/">
            
                    
                    8.1 其他资源
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="../../misc/success.html">
            
                <a href="../../misc/success.html">
            
                    
                    8.2 如何成为一个成功的CBer
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.3" data-path="../../misc/question.html">
            
                <a href="../../misc/question.html">
            
                    
                    8.3 问问题的技巧
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4" data-path="../../misc/quotes.html">
            
                <a href="../../misc/quotes.html">
            
                    
                    8.4 其他CBer的建言
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../.." >2.1.3 JSON事件</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x70B9;&#x51FB;&#x4E8B;&#x4EF6;">&#x70B9;&#x51FB;&#x4E8B;&#x4EF6;</h1>
<p><code>clickEvent</code>&#x662F;JSON&#x6700;&#x91CD;&#x8981;&#x7684;&#x529F;&#x80FD;&#x4E4B;&#x4E00;&#x3002;<br>&#x5176;&#x529F;&#x80FD;&#x4E3A;&#xFF1A;&#x70B9;&#x51FB;&#x76F8;&#x5173;&#x6587;&#x5B57;&#x7684;&#x65F6;&#x5019;&#x6267;&#x884C;&#x67D0;&#x4E9B;&#x64CD;&#x4F5C;&#x3002;<br>&#x63D0;&#x4F9B;&#x4E86;&#x4E00;&#x4E2A;&#x5BF9;&#x8F93;&#x5165;&#xFF08;&#x70B9;&#x51FB;&#xFF09;&#x4EA7;&#x751F;&#x53CD;&#x9988;&#xFF08;action&#xFF09;&#x7684;&#x529F;&#x80FD;&#x3002;</p>
<p>&#x57FA;&#x672C;&#x683C;&#x5F0F;&#x4E3A;&#xFF1A;</p>
<pre><code>&quot;clickEvent&quot;:{&quot;action&quot;:&quot;&lt;&#x52A8;&#x4F5C;&gt;&quot;,&quot;value&quot;:&quot;&lt;&#x503C;&gt;&quot;}
</code></pre><p>&#x5C06;&#x5176;&#x653E;&#x7F6E;&#x5728;&#x5BF9;&#x8C61;&#x5185;&#x4F7F;&#x7528;&#xFF08;&#x548C;&#x6837;&#x5F0F;&#x7C7B;&#x4F3C;&#xFF0C;&#x90FD;&#x662F;&#x6587;&#x672C;&#x5BF9;&#x8C61;&#x7684;&#x4E00;&#x4E2A;<strong>&#x5C5E;&#x6027;</strong>&#xFF0C;&#x53EA;&#x662F;&#x8FD9;&#x5C5E;&#x6027;&#x6BD4;&#x8F83;&#x590D;&#x6742;&#x800C;&#x5DF2;&#xFF09;</p>
<p>&#x8BF7;&#x6CE8;&#x610F;&#xFF0C;<code>clickEvent</code>&#x4E0D;&#x9002;&#x7528;&#x4E8E;&#x6807;&#x9898;&#x53CA;<code>advancement</code>&#x7684;description&#x3002;<br>&#x5728;<strong>&#x544A;&#x793A;&#x724C;</strong>&#x7684;&#x8BDD;&#x6700;&#x591A;&#x53EA;&#x80FD;&#x8BBE;&#x7F6E;4&#x4E2A;&#xFF0C;&#x4E4B;&#x540E;<strong>&#x544A;&#x793A;&#x724C;</strong>&#x90E8;&#x5206;&#x4F1A;&#x6709;&#x8BB2;&#x89E3;&#x3002;</p>
<p>&#x800C;&#x6BCF;&#x4E2A;&#x6587;&#x672C;&#x5BF9;&#x8C61;&#x53EA;&#x80FD;&#x8BBE;&#x7F6E;&#x4E00;&#x4E2A;&#x70B9;&#x51FB;&#x4E8B;&#x4EF6;&#x548C;&#x60AC;&#x6D6E;&#x4E8B;&#x4EF6;&#xFF0C;&#x7EE7;&#x627F;&#x4E0B;&#x6765;&#x7684;&#x4E8B;&#x4EF6;&#x4F1A;&#x88AB;&#x8986;&#x76D6;&#x3002;</p>
<blockquote>
<p><code>advancement</code>&#x7684;title&#x7684;clickEvent&#x53EA;&#x80FD;&#x5728;&#x804A;&#x5929;&#x680F;&#x516C;&#x544A;&#x83B7;&#x5F97;&#x8FDB;&#x5EA6;&#x65F6;&#x70B9;&#x51FB;&#xFF0C;&#x4E0D;&#x80FD;&#x5728;&#x8FDB;&#x5EA6;&#x9762;&#x677F;&#x70B9;&#x51FB;</p>
</blockquote>
<h2 id="runcommand-&#x8FD0;&#x884C;&#x547D;&#x4EE4;">run_command-&#x8FD0;&#x884C;&#x547D;&#x4EE4;</h2>
<p>run_command&#x662F;&#x4E00;&#x4E2A;&#x5341;&#x5206;&#x5E38;&#x7528;&#x7684;&#x52A8;&#x4F5C;<br>&#x5176;&#x529F;&#x80FD;&#x4E3A;&#x8BA9;&#x70B9;&#x51FB;&#x8005;&#x6267;&#x884C;&#x8BBE;&#x5B9A;&#x7684;&#x547D;&#x4EE4;<br>&#x57FA;&#x672C;&#x683C;&#x5F0F;&#x4E3A;&#xFF1A;</p>
<pre><code>&quot;clickEvent&quot;:{&quot;action&quot;:&quot;run_command&quot;,&quot;value&quot;:&quot;&lt;&#x9700;&#x6267;&#x884C;&#x547D;&#x4EE4;&gt;&quot;}
</code></pre><p>&#x9700;&#x6267;&#x884C;&#x547D;&#x4EE4;&#x524D;&#x5FC5;&#x987B;&#x6709;<code>/</code>&#xFF0C;&#x5C31;&#x50CF;&#x662F;&#x76F4;&#x63A5;&#x5728;&#x804A;&#x5929;&#x680F;&#x6267;&#x884C;&#x4E00;&#x6837;&#x3002;</p>
<p>&#x5E76;&#x4E14;CE&#xFF08;clickevent&#x7684;&#x7B80;&#x79F0;&#xFF09;&#x53EF;&#x4EE5;&#x548C;&#x6837;&#x5F0F;&#x4EE3;&#x7801;&#x4E00;&#x8D77;&#x4F7F;&#x7528;<br>&#x4F8B;&#x5982;&#xFF1A;</p>
<pre><code>tellraw @a {&quot;text&quot;:&quot;Hello World&quot;,&quot;color&quot;:&quot;dark_red&quot;,&quot;clickEvent&quot;:{&quot;action&quot;:&quot;run_command&quot;,&quot;value&quot;:&quot;/say hi&quot;}}
</code></pre><p><img src="images/18.png" alt="18"></p>
<p>&#x7531;&#x4E8E;run_command&#x662F;&#x4F7F;&#x70B9;&#x51FB;&#x8005;&#x6267;&#x884C;&#x547D;&#x4EE4;&#xFF0C;&#x6240;&#x4EE5;&#x540C;&#x4E00;&#x4E2A;&#x547D;&#x4EE4;&#x7531;&#x4E0D;&#x540C;&#x4EBA;&#x70B9;&#x51FB;&#xFF0C;&#x7ED3;&#x679C;&#x4E5F;&#x4E0D;&#x540C;<br>&#x4F8B;&#x5982;&#x5206;&#x522B;&#x7531;SYL&#x548C;Tester&#x70B9;&#x51FB;&#x4E0A;&#x9762;&#x7684;&#x547D;&#x4EE4;&#xFF1A;<br><img src="images/19.png" alt="19"></p>
<p>&#x5728;&#x591A;&#x4EBA;&#x6E38;&#x620F;&#x65F6;&#xFF0C;&#x9700;&#x8981;&#x6CE8;&#x610F;&#x4E00;&#x70B9;&#xFF0C;&#x5728;<code>tellraw</code>&#x547D;&#x4EE4;&#x3001;&#x4E66;&#x672C;&#x5185;&#x4F7F;&#x7528;CE&#x65F6;&#xFF0C;&#x5982;&#x679C;&#x70B9;&#x51FB;&#x8005;&#x6CA1;&#x6709;OP&#x6743;&#x9650;<br>&#x90A3;&#x4E48;&#x662F;&#x65E0;&#x6CD5;&#x6267;&#x884C;&#x9700;&#x8981;OP&#x6743;&#x9650;&#x7684;&#x547D;&#x4EE4;&#x7684;<br>&#x4F8B;&#x5982;<code>say</code>&#x65E0;&#x6CD5;&#x88AB;&#x666E;&#x901A;&#x73A9;&#x5BB6;&#x6267;&#x884C;&#xFF0C;&#x90A3;&#x4E48;&#x5982;&#x679C;&#x5728;&#x6CA1;&#x6709;OP&#x6743;&#x9650;&#x7684;&#x60C5;&#x51B5;&#x70B9;&#x51FB;&#x6587;&#x5B57;&#xFF1A;<br><img src="images/20.png" alt="20"></p>
<blockquote>
<p>&#x5982;&#x679C;&#x662F;&#x5728;<strong>&#x544A;&#x793A;&#x724C;</strong>&#x5185;&#x4F7F;&#x7528;&#x7684;&#x8BDD;&#xFF0C;&#x5219;&#x5E26;&#x6709;2&#x7EA7;OP&#x6743;&#x9650;&#xFF0C;&#x6240;&#x4EE5;&#x666E;&#x901A;&#x73A9;&#x5BB6;&#x4E5F;&#x53EF;&#x4EE5;&#x53F3;&#x952E;<strong>&#x544A;&#x793A;&#x724C;</strong>&#x6267;&#x884C;&#x547D;&#x4EE4;</p>
</blockquote>
<hr>
<p>&#x53E6;&#x4E00;&#x70B9;&#x5C31;&#x662F;&#xFF0C;<code>value</code>&#x91CC;&#x9762;&#x7684;&#x547D;&#x4EE4;&#x957F;&#x5EA6;&#x4E0D;&#x80FD;&#x592A;&#x957F;<br>&#x56E0;&#x4E3A;&#x547D;&#x4EE4;&#x662F;&#x89C6;&#x4F5C;&#x5728;&#x804A;&#x5929;&#x680F;&#x8F93;&#x5165;&#x4E4B;&#x540E;&#x6309;enter&#x6267;&#x884C;&#x7684;<br>&#x6240;&#x4EE5;&#x4E0D;&#x80FD;&#x8D85;&#x8D8A;&#x804A;&#x5929;&#x680F;&#x7684;&#x8F93;&#x5165;&#x4E0A;&#x9650;&#xFF1A;256&#x4E2A;&#x5B57;&#x7B26;</p>
<p>&#x4F8B;&#x5982;&#x6211;&#x4F7F;&#x7528;&#x4EE5;&#x4E0B;<code>/summon</code>&#x547D;&#x4EE4;&#xFF1A;<br>&#xFF08;&#x672C;&#x4F8B;&#x5B50;&#x4E3A;&#x65E7;&#x7248;&#x672C;&#x4F8B;&#x5B50;&#xFF0C;&#x5F53;&#x65F6;&#x8F93;&#x5165;&#x4E0A;&#x9650;&#x4E3A;100&#x4E2A;&#x5B57;&#x7B26;&#xFF0C;&#x6240;&#x4EE5;&#x6B64;&#x547D;&#x4EE4;&#x5728;&#x65B0;&#x7248;&#x672C;&#x4E2D;&#x53EF;&#x7528;&#xFF0C;&#x4F46;&#x82E5;&#x8D85;&#x51FA;256&#x4E2A;&#x5B57;&#x7B26;&#x7684;&#x8BDD;&#x4F9D;&#x65E7;&#x4F1A;&#x51FA;&#x73B0;&#x95EE;&#x9898;&#xFF09;</p>
<pre><code>tellraw @a {&quot;text&quot;:&quot;Hello World&quot;,&quot;color&quot;:&quot;dark_red&quot;,&quot;clickEvent&quot;:{&quot;action&quot;:&quot;run_command&quot;,&quot;value&quot;:&quot;/summon minecraft:creeper ~ ~ ~ {powered:1,ExplosionRadius:5,Attributes:[{Name:generic.movementSpeed,Base:0}],ActiveEffects:[{Ambient:1,Amplifier:0,Duration:999999999,Id:11}]}&quot;}}
</code></pre><p><img src="images/21.png" alt="21"></p>
<p>&#x7531;&#x4E8E;&#x8D85;&#x8FC7;&#x4E86;&#x957F;&#x5EA6;&#x4E0A;&#x9650;&#xFF0C;&#x5B9E;&#x9645;&#x8F93;&#x5165;&#x90E8;&#x5206;&#x5230;&#x9017;&#x53F7;&#x5C31;&#x7EC8;&#x7ED3;&#x4E86;&#xFF0C;&#x547D;&#x4EE4;&#x5E76;&#x672A;&#x5B8C;&#x6574;&#xFF0C;&#x81EA;&#x7136;&#x65E0;&#x6CD5;&#x6210;&#x529F;&#x6267;&#x884C;</p>
<blockquote>
<p>&#x5982;&#x679C;&#x662F;&#x5728;<strong>&#x544A;&#x793A;&#x724C;</strong>&#x5185;&#x4F7F;&#x7528;&#x7684;&#x8BDD;&#xFF0C;&#x5219;&#x6CA1;&#x6709;&#x8FD9;&#x4E2A;&#x957F;&#x5EA6;&#x9650;&#x5236;</p>
</blockquote>
<h2 id="suggestcommand-&#x5EFA;&#x8BAE;&#x547D;&#x4EE4;">suggest_command-&#x5EFA;&#x8BAE;&#x547D;&#x4EE4;</h2>
<p><code>suggest_command</code>&#xFF0C;&#x5EFA;&#x8BAE;&#x547D;&#x4EE4;<br>&#x5176;&#x529F;&#x80FD;&#x4E3A;&#x70B9;&#x51FB;&#x65F6;&#xFF0C;&#x5C06;&#x70B9;&#x51FB;&#x8005;&#x8F93;&#x5165;&#x680F;&#x4E2D;&#x7684;&#x5185;&#x5BB9;<strong>&#x66FF;&#x6362;</strong>&#x4E3A;<code>value</code>&#x4E2D;&#x8BBE;&#x5B9A;&#x7684;&#x5185;&#x5BB9;</p>
<p>&#x683C;&#x5F0F;</p>
<pre><code>&quot;clickEvent&quot;:{&quot;action&quot;:&quot;suggest_command&quot;,&quot;value&quot;:&quot;&lt;&#x503C;&gt;&quot;}
</code></pre><p>&#x4F8B;&#x5982;&#xFF1A;</p>
<pre><code>tellraw @a {&quot;text&quot;:&quot;Hello World&quot;,&quot;clickEvent&quot;:{&quot;action&quot;:&quot;suggest_command&quot;,&quot;value&quot;:&quot;hi&quot;}}
</code></pre><p><img src="images/22.png" alt="22"></p>
<h2 id="openurl-&#x6253;&#x5F00;&#x94FE;&#x63A5;">open_url-&#x6253;&#x5F00;&#x94FE;&#x63A5;</h2>
<p>open_url&#xFF0C;&#x6253;&#x5F00;&#x94FE;&#x63A5;&#xFF08;&#x4E00;&#x822C;&#x662F;&#x53EB;&#x6D4F;&#x89C8;&#x5668;&#x6253;&#x5F00;&#x7684;&#xFF0C;&#x7136;&#x800C;&#x6253;&#x5F00;&#x524D;&#x4F1A;&#x6709;&#x4E00;&#x6BB5;&#x8B66;&#x544A;&#x8BE2;&#x95EE;&#x73A9;&#x5BB6;&#x662F;&#x5426;&#x8981;&#x6253;&#x5F00;&#x672A;&#x77E5;&#x94FE;&#x63A5;&#xFF09;</p>
<p>&#x57FA;&#x672C;&#x683C;&#x5F0F;&#x4E3A;&#xFF1A;</p>
<pre><code>&quot;clickEvent&quot;:{&quot;action&quot;:&quot;open_url&quot;,&quot;value&quot;:&quot;&lt;&#x503C;&gt;&quot;}
</code></pre><p>&#x503C;&#x7684;&#x90E8;&#x5206;&#x5FC5;&#x987B;&#x586B;&#x4E00;&#x4E2A;&#x4EE5;<code>http://</code>&#x6216;<code>https://</code>&#x5F00;&#x5934;&#x7684;&#x7F51;&#x5740;<br>&#x6309;&#x4E0B;&#x53BB;&#xFF0C;&#x7CFB;&#x7EDF;&#x5C31;&#x4F1A;&#x8BE2;&#x95EE;&#x662F;&#x5426;&#x6253;&#x5F00;&#x7F51;&#x9875;&#xFF0C;&#x540C;&#x610F;&#x4EE5;&#x540E;&#x5C31;&#x4F1A;&#x6253;&#x5F00;&#x6D4F;&#x89C8;&#x5668;&#x8DF3;&#x8F6C;&#x81F3;&#x9875;&#x9762;<br>&#x4F8B;&#x5B50;:</p>
<pre><code>tellraw @a {&quot;text&quot;:&quot;Hello World&quot;,&quot;clickEvent&quot;:{&quot;action&quot;:&quot;open_url&quot;,&quot;value&quot;:&quot;http://www.google.com&quot;}}
</code></pre><p><img src="images/1.png" alt="1"></p>
<p><img src="images/60.png" alt="60"></p>
<p><img src="images/24.png" alt="24"></p>
<h2 id="changepage-&#x6362;&#x9875;">change_page-&#x6362;&#x9875;</h2>
<p>&#x6B64;CE&#x4E3A;<strong>&#x6210;&#x4E66;</strong>&#x4E13;&#x7528;&#x7684;CE<br><strong>&#x6210;&#x4E66;</strong>&#x7684;&#x683C;&#x5F0F;&#x5BB9;&#x540E;&#x8BB2;&#x89E3;</p>
<p>&#x57FA;&#x672C;&#x683C;&#x5F0F;&#x4E3A;&#xFF1A;</p>
<pre><code>&quot;clickEvent&quot;:{&quot;action&quot;:&quot;change_page&quot;,&quot;value&quot;:&quot;&lt;&#x503C;&gt;&quot;}
</code></pre><p><code>&#x503C;</code>&#x5C31;&#x662F;&#x8981;&#x8DF3;&#x5230;&#x7684;&#x9875;&#x6570;<br>&#x4F8B;&#x5982;&#xFF1A;&#xFF08;<strong>&#x6210;&#x4E66;</strong>&#x7684;&#x683C;&#x5F0F;&#x8BF7;&#x53C2;&#x9605;&#x540E;&#x9762;&#x76F8;&#x5173;&#x7BC7;&#x7AE0;&#xFF09;</p>
<pre><code>give @a minecraft:written_book 1 0 {title:&quot;&quot;,author:&quot;&quot;,pages:[&quot;{\&quot;text\&quot;:\&quot;Page 2\&quot;,\&quot;clickEvent\&quot;:{\&quot;action\&quot;:\&quot;change_page\&quot;,\&quot;value\&quot;:\&quot;2\&quot;}}&quot;,&quot;{\&quot;text\&quot;:\&quot;The second page.\&quot;}&quot;]}
</code></pre><p><img src="images/30.png" alt="30"></p>
<p>&#x6309;&#x4E0B;&#x4EE5;&#x540E;&#xFF1A;<br><img src="images/31.png" alt="31"></p>
<h1 id="&#x60AC;&#x6D6E;&#x4E8B;&#x4EF6;">&#x60AC;&#x6D6E;&#x4E8B;&#x4EF6;</h1>
<p><code>hoverevent</code>&#x662F;JSON&#x7684;&#x53E6;&#x4E00;&#x4E2A;&#x5B9E;&#x7528;&#x529F;&#x80FD;<br>&#x7C7B;&#x4F3C;CE&#xFF0C;HE&#x4E5F;&#x662F;&#x4E00;&#x4E2A;&#x53CD;&#x9988;&#x673A;&#x5236;&#xFF0C;&#x4E0D;&#x8FC7;&#x8FD9;&#x6B21;&#x662F;&#x5BF9;&#x9F20;&#x6807;&#x79FB;&#x4E0A;&#x6587;&#x5B57;&#x65F6;&#xFF0C;&#x8FD9;&#x4E2A;&#x52A8;&#x4F5C;&#x8FDB;&#x884C;&#x53CD;&#x9988;<br>&#x7B80;&#x5355;&#x6765;&#x8BF4;&#x5C31;&#x662F;&#x9F20;&#x6807;&#x79FB;&#x4E0A;&#x53BB;&#x6587;&#x5B57;&#xFF0C;&#x4F1A;&#x6709;&#x4E2A;&#x60AC;&#x6D6E;&#x6846;&#x663E;&#x793A;&#x4E00;&#x4E9B;&#x4FE1;&#x606F;</p>
<p>&#x57FA;&#x672C;&#x683C;&#x5F0F;&#x4E3A;&#xFF1A;</p>
<pre><code>&quot;hoverEvent&quot;:{&quot;action&quot;:&quot;&lt;&#x52A8;&#x4F5C;&gt;&quot;,&quot;value&quot;:&quot;&lt;&#x503C;&gt;&quot;}
</code></pre><blockquote>
<p><code>hoverevent</code>&#x4E0D;&#x9002;&#x7528;&#x4E8E;<strong>&#x6807;&#x9898;</strong>&#x3001;<code>advancement</code>&#x548C;<strong>&#x544A;&#x793A;&#x724C;</strong></p>
</blockquote>
<h2 id="showtext-&#x663E;&#x793A;&#x6587;&#x672C;">show_text-&#x663E;&#x793A;&#x6587;&#x672C;</h2>
<p>show_text&#xFF0C;&#x663E;&#x793A;&#x6587;&#x672C;<br>&#x529F;&#x80FD;&#x81EA;&#x7136;&#x4E3A;&#x663E;&#x793A;&#x6587;&#x5B57;</p>
<p>&#x57FA;&#x672C;&#x683C;&#x5F0F;&#x4E3A;&#xFF1A;</p>
<pre><code>&quot;hoverEvent&quot;:{&quot;action&quot;:&quot;show_text&quot;,&quot;value&quot;:&quot;&lt;&#x503C;&gt;&quot;}
</code></pre><p>&#x6216;</p>
<pre><code>&quot;hoverEvent&quot;:{&quot;action&quot;:&quot;show_text&quot;,&quot;value&quot;:{JSON&#x6587;&#x672C;}}
</code></pre><p>&#x524D;&#x8005;&#x4F7F;&#x7528;&#x4E0A;&#x6BD4;&#x8F83;&#x65B9;&#x4FBF;&#x7B80;&#x5355;&#xFF0C;&#x4F46;&#x4E0D;&#x652F;&#x6301;&#x5982;&#x6837;&#x5F0F;&#x7B49;&#x8BBE;&#x5B9A;<br>&#x4F7F;&#x7528;&#x4F8B;&#x5B50;&#xFF1A;</p>
<pre><code>tellraw @a {&quot;text&quot;:&quot;Hello World&quot;,&quot;hoverEvent&quot;:{&quot;action&quot;:&quot;show_text&quot;,&quot;value&quot;:&quot;hello again&quot;}}
</code></pre><p><img src="images/26.png" alt="26"></p>
<p>&#x540E;&#x8005;&#x9700;&#x6C42;&#x5B8C;&#x6574;&#x7684;JSON&#x6587;&#x672C;&#xFF0C;&#x4F46;&#x652F;&#x63F4;&#x5982;&#x6837;&#x5F0F;&#x4EE3;&#x7801;&#x7B49;&#x529F;&#x80FD;<br>&#x4F8B;&#x5B50;&#xFF1A;</p>
<pre><code>tellraw @a {&quot;text&quot;:&quot;Hello World&quot;,&quot;hoverEvent&quot;:{&quot;action&quot;:&quot;show_text&quot;,&quot;value&quot;:{&quot;text&quot;:&quot;hello again&quot;,&quot;color&quot;:&quot;gold&quot;}}}
</code></pre><p><img src="images/27.png" alt="27"></p>
<p>&#x751A;&#x81F3;&#x662F;&#x5176;&#x4ED6;&#x7684;JSON&#x7ED3;&#x6784;&#xFF0C;&#x4F8B;&#x5982;&#xFF1A;</p>
<pre><code>tellraw @a {&quot;text&quot;:&quot;Hello World&quot;,&quot;hoverEvent&quot;:{&quot;action&quot;:&quot;show_text&quot;,&quot;value&quot;:{&quot;score&quot;:{&quot;name&quot;:&quot;SYL_qiuyifeng&quot;,&quot;objective&quot;:&quot;test&quot;},&quot;color&quot;:&quot;gold&quot;}}}
</code></pre><p><img src="images/28.png" alt="28"></p>
<p><img src="images/29.png" alt="29"></p>
<h2 id="showitem-&#x663E;&#x793A;&#x7269;&#x54C1;">show_item-&#x663E;&#x793A;&#x7269;&#x54C1;</h2>
<p>&#x663E;&#x793A;&#x7269;&#x54C1;&#xFF0C;&#x53EF;&#x4EE5;&#x663E;&#x793A;&#x4E00;&#x4E2A;&#x7269;&#x54C1;&#x7684;&#x4FE1;&#x606F;<br>&#x5176;&#x6548;&#x679C;&#x4E0E;&#x5728;&#x80CC;&#x5305;&#x5185;&#x67E5;&#x770B;&#x7269;&#x54C1;&#x4FE1;&#x606F;&#x4E00;&#x81F4;</p>
<p>&#x683C;&#x5F0F;&#x4E3A;&#xFF1A;</p>
<pre><code>&quot;hoverEvent&quot;:{&quot;action&quot;:&quot;show_item&quot;,&quot;value&quot;:&quot;&lt;&#x7269;&#x54C1;NBT&#x6807;&#x7B7E;&gt;&quot;}
</code></pre><p>&#x7269;&#x54C1;&#x6807;&#x7B7E;&#x8BF7;&#x53C2;&#x8003;&#x4E4B;&#x540E;&#x7684;NBT&#x6559;&#x7A0B;<br>&#x4F8B;&#x5B50;&#xFF1A;&#xFF08;&#x5173;&#x4E8E;\&quot;&#xFF0C;&#x5373;&#x8F6C;&#x4E49;&#x7684;&#x5185;&#x5BB9;&#xFF0C;&#x8BF7;&#x53C2;&#x9605;&#x76F8;&#x5E94;&#x7AE0;&#x8282;&#xFF09;</p>
<pre><code>tellraw @a {&quot;text&quot;:&quot;Hello World&quot;,&quot;hoverEvent&quot;:{&quot;action&quot;:&quot;show_item&quot;,&quot;value&quot;:&quot;{id:\&quot;minecraft:iron_pickaxe\&quot;}&quot;}}
</code></pre><p><img src="images/N8.png" alt="N8"></p>
<p> &#x4F8B;&#x5B50;&#x4E8C;&#xFF1A;</p>
<pre><code>tellraw @a {&quot;text&quot;:&quot;Hello World&quot;,&quot;hoverEvent&quot;:{&quot;action&quot;:&quot;show_item&quot;,&quot;value&quot;:&quot;{id:\&quot;minecraft:iron_pickaxe\&quot;,tag:{display:{Lore:[\&quot;keep digging\&quot;]}}}&quot;}}
</code></pre><p><img src="images/N7.png" alt="N7"></p>
<h2 id="showentity-&#x663E;&#x793A;&#x5B9E;&#x4F53;">show_entity-&#x663E;&#x793A;&#x5B9E;&#x4F53;</h2>
<p>show_entity&#xFF0C;&#x663E;&#x793A;&#x751F;&#x7269;<br>&#x6B64;&#x529F;&#x80FD;&#x5FC5;&#x987B;&#x5728;&#x73A9;&#x5BB6;&#x4F7F;&#x7528;&#x4E86;F3+H&#x6253;&#x5F00;&#x4E86;&#x9644;&#x52A0;&#x4FE1;&#x606F;&#x663E;&#x793A;&#x540E;&#x624D;&#x80FD;&#x8FD0;&#x4F5C;</p>
<p>&#x8FD9;&#x4E2A;&#x529F;&#x80FD;&#x63D0;&#x4F9B;&#x7684;&#x663E;&#x793A;&#xFF0C;&#x548C;&#x8FD0;&#x884C;&#x547D;&#x4EE4;<code>/say @e</code>&#x6216;&#x5176;&#x4ED6;&#x7C7B;&#x4F3C;&#x547D;&#x4EE4;&#x540E;<br>&#x5C06;&#x9F20;&#x6807;&#x79FB;&#x4E0A;&#x53BB;&#x5B9E;&#x4F53;&#x540D;&#x79F0;&#x540E;&#x663E;&#x793A;&#x7684;&#x5B9E;&#x4F53;&#x4FE1;&#x606F;&#x4E00;&#x81F4;<br>&#x6548;&#x679C;&#x5982;&#x4E0B;&#xFF1A;<br><img src="images/34.png" alt="34"></p>
<p>&#x57FA;&#x672C;&#x683C;&#x5F0F;&#x4E3A;&#xFF1A;</p>
<pre><code>&quot;hoverEvent&quot;:{&quot;action&quot;:&quot;show_entity&quot;,&quot;value&quot;:&quot;{name:\&quot;&lt;&#x540D;&#x79F0;&gt;\&quot;,type:\&quot;&lt;&#x751F;&#x7269;ID&gt;\&quot;,id:\&quot;&lt;UUID/&#x6587;&#x672C;&gt;\&quot;}&quot;}
</code></pre><p>&#x5176;&#x4E2D;<code>name</code>&#x5C31;&#x662F;&#x6700;&#x4E0A;&#x9762;&#x663E;&#x793A;&#x7684;&#x540D;&#x5B57;<br><code>type</code>&#x5C31;&#x662F;&#x751F;&#x7269;id<br><code>id</code>&#x5462;&#xFF0C;&#x539F;&#x610F;&#x662F;&#x7528;&#x4E8E;&#x663E;&#x793A;<code>UUID</code>&#x7684;&#xFF0C;&#x4F46;&#x4E5F;&#x53EF;&#x7528;&#x4F5C;&#x4E00;&#x822C;&#x6587;&#x672C;&#x663E;&#x793A;</p>
<p>&#x4F8B;&#x5982;&#xFF1A;</p>
<pre><code>tellraw @a {&quot;text&quot;:&quot;Pig&quot;,&quot;hoverEvent&quot;:{&quot;action&quot;:&quot;show_entity&quot;,&quot;value&quot;:{\&quot;type\&quot;:\&quot;Pig\&quot;,\&quot;name\&quot;:\&quot;Bacon\&quot;,\&quot;id\&quot;:\&quot;Walking Bacon\&quot;}}}
</code></pre><p><img src="images/35.png" alt="35"></p>
<h1 id="insertion-&#x63D2;&#x5165;">insertion-&#x63D2;&#x5165;</h1>
<p>insertion&#x662F;&#x4E00;&#x4E2A;&#x5355;&#x72EC;&#x7684;&#x5C5E;&#x6027;<br>&#x5176;&#x683C;&#x5F0F;&#x4E3A;&#xFF1A;</p>
<pre><code>&quot;insertion&quot;:&quot;&lt;&#x503C;&gt;&quot;
</code></pre><p>&#x5176;&#x529F;&#x80FD;&#x4E3A;&#xFF0C;shift+&#x70B9;&#x51FB;&#x8BE5;JSON&#x6587;&#x672C;&#x540E;&#xFF0C;&#x5728;&#x804A;&#x5929;&#x680F;&#x8F93;&#x5165;&#x63D2;&#x5165;<code>&#x503C;</code>&#x7684;&#x5185;&#x5BB9;<br>&#x548C;<code>suggest_command</code>&#x4E0D;&#x540C;&#xFF0C;&#x6B64;&#x64CD;&#x4F5C;&#x5E76;<strong>&#x4E0D;&#x4F1A;&#x8986;&#x76D6;</strong>&#x5DF2;&#x6709;&#x8F93;&#x5165;<br>&#x800C;&#x662F;&#x5728;&#x8F93;&#x5165;&#x7684;&#x6700;&#x540E;&#x6DFB;&#x52A0;</p>
<p>&#x4F8B;&#x5B50;&#xFF1A;</p>
<pre><code>tellraw @a {&quot;text&quot;:&quot;Hello World&quot;,&quot;insertion&quot;:&quot;|after click&quot;}
</code></pre><p><img src="images/25.png" alt="25"></p>
<p><code>before click</code>&#x662F;&#x5DF2;&#x7ECF;&#x8F93;&#x5165;&#x7684;&#x5185;&#x5BB9;&#xFF0C;<code>|after click</code>&#x662F;&#x70B9;&#x51FB;&#x540E;&#x63D2;&#x5165;&#x7684;&#x5185;&#x5BB9;</p>
<hr>
<p>&#x5373;&#x4F7F;&#x77E5;&#x9053;&#x4E86;&#x90A3;&#x4E48;&#x591A;&#x7684;&#x529F;&#x80FD;&#xFF0C;&#x5982;&#x679C;JSON&#x6587;&#x672C;&#x53EA;&#x80FD;&#x505A;&#x5230;&#x5355;&#x4E00;&#x989C;&#x8272;&#xFF0C;&#x5355;&#x4E00;&#x529F;&#x80FD;&#xFF0C;&#x8FD8;&#x662F;&#x6BD4;&#x8F83;&#x5355;&#x8C03;&#x554A;&#x3002;<br>&#x4E0D;&#x7528;&#x6015;&#xFF01;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x8FDB;&#x884C;&#x5206;&#x9879;&#x5904;&#x7406;&#xFF0C;&#x4E00;&#x6B21;&#x8FC7;&#x663E;&#x793A;&#x591A;&#x4E2A;&#x6587;&#x672C;&#x5BF9;&#x8C61;&#xFF0C;&#x663E;&#x793A;&#x4E0D;&#x540C;&#x7684;&#x6837;&#x5F0F;&#x3001;&#x7C7B;&#x578B;&#x4EE5;&#x53CA;&#x4E8B;&#x4EF6;&#x3002;<br>&#x63A5;&#x4E0B;&#x6765;&#x5C06;&#x4F1A;&#x8BB2;&#x89E3;JSON&#x5206;&#x9879;&#x5904;&#x7406;&#x3002;</p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="formatting.html" class="navigation navigation-prev " aria-label="Previous page: 2.1.2 JSON样式">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="array.html" class="navigation navigation-next " aria-label="Next page: 2.1.4 JSON分项">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"2.1.3 JSON事件","level":"1.3.1.3","depth":3,"next":{"title":"2.1.4 JSON分项","level":"1.3.1.4","depth":3,"path":"common-format/json/array.md","ref":"common-format/json/array.md","articles":[]},"previous":{"title":"2.1.2 JSON样式","level":"1.3.1.2","depth":3,"path":"common-format/json/formatting.md","ref":"common-format/json/formatting.md","articles":[]},"dir":"ltr"},"config":{"plugins":["expandable-chapters","lb2br","-sharing"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"expandable-chapters":{},"lb2br":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"命令进阶","language":"en","gitbook":"*","description":"一份Minecraft命令教程"},"file":{"path":"common-format/json/event.md","mtime":"2017-07-29T09:10:22.082Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2017-11-08T10:37:55.949Z"},"basePath":"../..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="../../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

